package io.zhengqinyu.behaviour.interpreter.impl;

import io.zhengqinyu.behaviour.interpreter.abst.Expression;

public class Speed extends Expression {

	@Override
	public void excute(String key, double value) {
		String speed = "";
		if (value < 500)
			speed = "快速";
		else if (value >= 1000)
			speed = "慢速";
		else
			speed = "中速";
		System.out.print(speed + "  ");
	}

}
